<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style>
        .box{
            width: 200px;
            height: 200px;
            background: yellow;
        }
    </style>
</head>
<body>
    <button>off</button>
    <div class="box"></div>
    <script>
        $(function(){
            $(".box").on("click",function(){
                console.log("点击盒子");
            })
            $(".box").on("mouseenter",function(){
                console.log("进来了");
            })
            $("body").on("click",".box",function(){
                console.log("委托的");
            })
            $("body").on("click",function(){
                console.log("body自身的");
            })
            $("button").on("click",function(){
                // $(".box").off("click")
                // $(".box").off()
                $("body").off("click","**")
            })
        })
    </script>
</body>
</html>